<html>
<head><meta charset="utf-8"><title>apple silicon + bindgen + C union · t-compiler/arm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/index.html">t-compiler/arm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/apple.20silicon.20.2B.20bindgen.20.2B.20C.20union.html">apple silicon + bindgen + C union</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223516147"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/apple%20silicon%20%2B%20bindgen%20%2B%20C%20union/near/223516147" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Corey Farwell <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/apple.20silicon.20.2B.20bindgen.20.2B.20C.20union.html#223516147">(Jan 21 2021 at 14:37)</a>:</h4>
<p>encountering an issue where bindgen is generating a C union with random data, that only affects apple silicon. i wrote up a post on URLO and curious if anyone has thoughts about what could be going wrong <a href="https://users.rust-lang.org/t/on-apple-silicon-bindgen-union-is-constructed-with-random-data/54469">https://users.rust-lang.org/t/on-apple-silicon-bindgen-union-is-constructed-with-random-data/54469</a></p>



<a name="223542459"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/apple%20silicon%20%2B%20bindgen%20%2B%20C%20union/near/223542459" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Corey Farwell <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/apple.20silicon.20.2B.20bindgen.20.2B.20C.20union.html#223542459">(Jan 21 2021 at 17:27)</a>:</h4>
<p>the underlying issue has been discovered and wrote up here: <a href="https://github.com/rust-lang/rust-bindgen/issues/1973#issuecomment-764756997">https://github.com/rust-lang/rust-bindgen/issues/1973#issuecomment-764756997</a></p>



<a name="223542573"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/apple%20silicon%20%2B%20bindgen%20%2B%20C%20union/near/223542573" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Corey Farwell <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/apple.20silicon.20.2B.20bindgen.20.2B.20C.20union.html#223542573">(Jan 21 2021 at 17:28)</a>:</h4>
<p>tldr: bindgen + c unions with floats + aarch64 isn't working</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>